<?php
/** [属性控制器]
 * @Author: 976123967@qq.com
 * @Date:   2015-01-15 10:29:01
 * @Last Modified by:   Administrator
 * @Last Modified time: 2015-01-15 10:30:40
 */
class FlagAction extends PublicAction{

	public $logic;
	/**
	 * [_initialize 初始化]
	 * @return [type] [description]
	 */
	public function _initialize()
	{
		parent::_initialize();
		$this->logic = D('Article','Logic');
	}

	/**
	 * [index 属性管理]
	 * @return [type] [description]
	 */
	public  function index()
	{
		if(IS_POST)
		{
			if(!$this->logic->set_flag())
				$this->error("请检查Data文件夹的权限");
			$this->success('属性设置成功');
			die;
		}
		$this->assign('flag',C('flag'));
		$this->display();
	}
}